Skip to content

Conversation

oddvargl
Copy link
Member

The Epicurious dataset has no carbohydrate values, so the import now estimates them from calories, protein and fat using the Atwater factors (4/4/9 kcal per gram). Recipes with missing or contradictory macros get null instead of 0. Stored in a new indexed carbs column, exposed on the GraphQL Recipe type and shown as "Carbs (est.)" on the detail page.

The Epicurious dataset has no carbohydrate values, so the import now
estimates them from calories, protein and fat using the Atwater factors
(4/4/9 kcal per gram). Recipes with missing or contradictory macros get
null instead of a misleading 0. Stored in a new indexed `carbs` column,
exposed on the GraphQL Recipe type and shown as "Carbs (est.)" on the
detail page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oddvargl oddvargl requested a review from a team as a code owner October 15, 2026 08:33
@oddvargl oddvargl linked an issue Oct 15, 2026 that may be closed by this pull request
@ivankoc ivankoc merged commit d551123 into main Oct 15, 2026
ivankoc pushed a commit that referenced this pull request Oct 15, 2026
Take the teammate's carbs implementation (#49) and drop the frontend-only
estimate; give the beef mock recipe a carbs value.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add carbohydrates
2 participants